package org.learn.intermediate.homework;

public class HomeWork03 {
    public static void main(String[] args) {
        Manager manager = new Manager("张飞", 100, 20, 4.6, 3.5);
        manager.printSal();
    }
}
class Employee{
    private String name;
    private double daySal;
    private int workDays;
    //
    private double grad;
    //方法

    public Employee(String name, double daySal, int workDays, double grad) {
        this.name = name;
        this.daySal = daySal;
        this.workDays = workDays;
        this.grad = grad;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getDaySal() {
        return daySal;
    }

    public void setDaySal(double daySal) {
        this.daySal = daySal;
    }

    public int getWorkDays() {
        return workDays;
    }

    public void setWorkDays(int workDays) {
        this.workDays = workDays;
    }

    public double getGrad() {
        return grad;
    }

    public void setGrad(double grad) {
        this.grad = grad;
    }
    public void printSal(){
        System.out.println(name + "工资=" + daySal * workDays * grad);
    }
}